import {Component} from '@angular/core';

@Component({
    selector: 'app-root',
    templateUrl: './app.component.html',
    styleUrls: ['./app.component.css']
})
export class AppComponent {
    minWidth: string;

    constructor() {
        this.getWindowsWidth();
    }

    getWindowsWidth(): void {
        if (window.screen.width >= 1600) {
            this.minWidth = '900px';
        }
        else if (window.screen.width >= 1360) {
            this.minWidth = '870px';
        }
        else if (window.screen.width >= 800) {
            this.minWidth = '800px';
        }
        else {
            return;
        }
    }
}
